<!DOCTYPE HTML>
<html>
<head>
    {include file="common_header"}
    <title>修改菜单信息</title>
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal"  method="post" enctype="multipart/form-data" action="{:url('edit')}">
        <input type="hidden" name="id" value="{$data['id']}">
        <input type="hidden" name="user_id" class="input-text" value="{$data['user_id']}" >
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>用户名：</label>
            <div class="formControls col-xs-6">
                <input type="text" disabled class="input-text" value="{:getusername($data['user_id'])}" >
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>提现金额：</label>
            <div class="formControls col-xs-6">
                <input type="text" class="input-text" value="{$data['apply_money']}"  disabled>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-xs-offset-1"><span class="c-red">*</span>审核操作：</label>
            <div class="formControls col-xs-6"> <span class="select-box">
				<select name="reviewed"  id="reviewed" class="select" datatype="*" nullmsg="请选择菜单" onchange="selectreviewed($(this).val())">

					<option value="1" {if condition="$data['reviewed'] eq 1"}selected{/if}>审核通过</option>
                  <!--  <option value="2" {if condition="$data['reviewed'] eq 2"}selected{/if}>未审核</option>-->
                    <option value="3" {if condition="$data['reviewed'] eq 3"}selected{/if}>驳回申请</option>
				</select>
				</span> </div>
        </div>
        <div class="row cl">
            <label class="form-label  col-xs-3 col-sm-3 col-xs-offset-1">备注信息：</label>
            <div class="formControls col-xs-6 col-sm-9">
                <textarea name="remark" cols="" rows="" disabled class="textarea"  placeholder="说点什么...100个字符以内">{$data['remark']}</textarea>
                <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
            </div>
        </div>
        <div class="row cl" id="rebutmsg" style="display: none">
            <label class="form-label  col-xs-3 col-sm-3 col-xs-offset-1">驳回理由：</label>
            <div class="formControls col-xs-6 col-sm-9" >
                <textarea name="rebutmsg" cols="" rows="" class="textarea"  placeholder="说点什么...100个字符以内"  >{$data['rebutmsg']}</textarea>
                <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>
<!--_footer 作为公共模版分离出去-->
{include file="common_footer"}
<!--/_footer 作为公共模版分离出去-->
</body>
<script>
    selectreviewed({$data['reviewed']});
    function selectreviewed() {
        $vals = $('#reviewed').val();
        if($vals==3){
            $('#rebutmsg').show();
        }else{
            $('#rebutmsg').hide();
        }
    }
</script>
</html>